//定义返回的数据类型
export interface reqRoleResponeseData {
  code: number;
  message: string;
  ok: boolean;
}
//返回的每一个数组类型
export interface reqRoleResponeseItem {
  id?: number;
  createTime?: string;
  updateTime?: string;
  roleName: string;
  remark: null;
}
//每一个返回的数组
export type records = reqRoleResponeseItem[];
//返回的全部数据类型
export interface reqRoleResponese extends reqRoleResponeseData {
  data: {
    records: records;
    total: number;
    size: number;
    current: number;
    orders: [];
    optimizeCountSql: boolean;
    hitCount: boolean;
    countId: null;
    maxLimit: null;
    searchCount: boolean;
    pages: number;
  };
}
//全部职位和按钮权限返回的数据类型
export interface reqMenuData {
  id: number;
  createTime: string;
  updateTime: string;
  pid: number;
  name: string;
  code: null;
  toCode: null;
  type: number;
  status: null;
  level: number;
  children?: MenuList;
  select: boolean;
}
//定义返回的数据类型
export type MenuList = reqMenuData[];
//定义接口返回的数据类型
export interface reqRoleMenuResponeseData extends reqRoleResponeseData {
  data: MenuList;
}
